<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <title>2-28props传值</title>
</head>
<body>
<div id="app">
  <my-parent name="title"></my-parent>
</div>
</body>
<script src="./js/vue.js"></script>
<script>
  Vue.component('my-parent',{
    props:['name'],
    template:"<div>I am a parent component {{name}}</div>"
  })
  new Vue({
    el:'#app'
  })
</script>
</html>